﻿using LuShanTea.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LuShanTea.IService
{
    public interface IIdNameService:IServiceSupport
    {
        long AddNew(IdNameDTO idName);
        void MakeDelete(long idNameId);
        void Updata(IdNameDTO idName);// 更新
        IdNameDTO[] GetAll();//获取所有数据字典
        IdNameDTO GetById(long idNameId);//根据id获取指定数据字典
        IdNameDTO[] GetNameByTypeName(string typeName);// 获取TypeName下所有的Name

        IdNameDTO GetIdByTypeNameAndName(string typeName,string name);

    }
}
